/*
 * @Author: wzt 1602453034@qq.com
 * @Date: 2023-08-30 23:52:25
 * @LastEditors: wzt 1602453034@qq.com
 * @LastEditTime: 2023-09-17 10:24:49
 * @FilePath: \YK_APP\main\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createWebHashHistory, createRouter } from "vue-router";
const history = createWebHashHistory();

const routers = [
  {
    path: "/",
    redirect:'/index',
  },
  {
    path: "/index",
    name: 'index',
    component: () => import("@/pages/index/index.vue"),
  },
  // {
  //   path: "/Addapp",
  //   name:'Addapp',
  //   redirect:'/Addapp/info',
  //   component: () => import("@/pages/addApp/index.vue"),
  //   children:[
  //     {
  //       path: "info",
  //       name:'AddappInfo',
  //       component: () => import("@/pages/addApp/info.vue"),
  //     },
  //     {
  //       path: "form",
  //       name:'AddappForm',
  //       component: () => import("@/pages/addApp/Addapp.vue"),
  //     },
  //   ]
  // },
];

const router = createRouter({
  history,
  routes: routers,
});

export default router;
